package com.hgw.Demo01_SimpleFactory.static_factory;

/**
 * Data time:2021/12/11 16:19
 * StudentID:2019112118
 * Author:hgw
 * Description: 星巴克
 */
public class CoffeeStore {

    public Coffee orderCoffee(String type) {

        Coffee coffee = SimpleCoffeeFactory.createCoffee("latte");
        // 加奶
        coffee.addMilk();
        // 加糖
        coffee.addSugar();

        return coffee;
    }

}
